while

The while statement will execute a block of code while a condition is true.. 

while (condition)
{
    code to be executed
}

#Title: JavaScript Looping Statements
#Element: 172: JavaScript Looping Statements